<div class="portlet box portlet-white">
    <div class="portlet-header">
        <div class="caption">热门网站</div>
    </div>
    <div class="portlet-body">
        <ul class="thumb-large">
            {% for item in HotGameSites %}
                <li class="media" style="height: 40px">
                    <div class="media-body">
                        <div class="quick-menu btn-group menu-right">
                            <a href="javascript:void(0);" class="">
                                <div class="fa fa-fire"></div>&nbsp; {{ item.HotValue }}
                            </a>
                        </div>
                        <h4 class="media-heading"><a href="{{ item.SiteUrl }}" target="_Blank" onclick="sendmessage({{ item.Nid }})">{{ item.Name }}</a>
                        </h4>
                    </div>
                </li>
            {% endfor %}

        </ul>
    </div>
</div>
<script>
    function sendmessage(vl)
    {
        var data={Nid:vl}
         $.ajax({
        type: "GET", //提交方式
        url: "{% url 'sitelinkclick' %}",//路径
        data: data,//数据，这里使用的是Json格式进行传输
        success: result => {//返回数据根据结果进行相应的处理

        }
    });
    }

</script>